package cn.itfcz.server.servlet;

import cn.itfcz.server.http.Request;
import cn.itfcz.server.http.Response;

public abstract class HttpFczServlet implements Servlet {

	public void service(Request req , Response resp) {
		if("get".equalsIgnoreCase(req.getMethod())) {
			// doGet();
			this.doGet(req, resp);
		}else {
			// doPost();
			this.doPost(req, resp);
		}
	}
	
	public abstract void doGet(Request req , Response resp);
	public abstract void doPost(Request req , Response resp);
	
}
